package com.example.service.impl;

import com.example.service.CountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author tong
 * @date 2023/01/20/18:52
 * @description
 */
@Service
public class TestServiceImpl {
    @Autowired
    private CountService countService;

    @Transactional
    public void test(){
        countService.transfer(1,2,10);
        countService.log();
    }
}
